package personal.vap.route.tracker.server;

public class ErrorResponseException extends Exception {

  private static final long serialVersionUID = 1L;

  private int errorCode;
  

  public ErrorResponseException(int errorCode, String message) {
    super(message);
    this.errorCode = errorCode;
  }
  
  public ErrorResponseException(String message) {
    super(message);
    this.errorCode = 500;
  }
  
  public ErrorResponseException(String message, Throwable cause) {
    super(message, cause);
    this.errorCode = 500;
  }
  
  public int getErrorCode() {
    return errorCode;
  }

}
